package com.oocl.processdData.cmdParse.impl;

import com.oocl.processdData.cmdParse.CmdParse;

public class CmdParseImpl implements CmdParse {
	
	@Override
	public String parse(String input) {
		String[] infos = input.trim().split("\\s+");
		if(infos[0].equals("L") && infos[1].equals("xml") && infos[2].equals("id")){
			return "command1";
		}else if(infos[0].equals("L") && infos[1].equals("line") && infos[2].equals("birth")){
			return "command2";
		}else if(infos[0].equals("C") && infos[1].equals("xml") && infos[2].equals("id")){
			return "command3";
		}else{
			return null;
		}
		
	}

}
